package com.szbmyoubao.app.bean.request


import androidx.annotation.Keep

/**
 * 创建溶图
 */
@Keep
data class CreateRTRequest(
    /**
     * 背景文件id
     */
    val bgFileId: String?,
    /**
     * 背景文件的坐标
     */
    val bgPos: BgPos?,
    /**
     * 背景音乐的文件id
     */
    val bgmFileId: String?,
    /**
     * 数字人文件id
     */
    val digitalHumanId: String?,
    /**
     * 商品视频超出框的坐标
     */
    val goodsClipPos: GoodsClipPos?,
    /**
     * 商品视频的坐标位置
     */
    val goodsPos: GoodsPos?,
    /**
     * 商品视频的文件id
     */
    var goodsVideoFileId: String?,
    /**
     * 数字人超出框的坐标
     */
    val humanClipPos: HumanClipPos?,
    /**
     * 数字人的坐标
     */
    val humanPos: HumanPos?,
    /**
     * 文案
     */
    val text: String?,
    /**
     * 视频拖动框的坐标
     */
    val vctl: Vctl?,
    /**
     * 配音的声音id
     */
    val voiceId: String?
) {
    @Keep
    data class BgPos(
        val scale: Float?
    )

    @Keep
    data class GoodsClipPos(
        val x: Int?,
        val y: Int?
    )

    @Keep
    data class GoodsPos(
        val height: Int?,
        val scale: Float?,
        val width: Int?,
        val x: Int?,
        val y: Int?
    )

    @Keep
    data class HumanClipPos(
        val x: Int?,
        val y: Int?
    )

    @Keep
    data class HumanPos(
        val height: Int?,
        val scale: Float?,
        val width: Int?,
        val x: Int?,
        val y: Int?
    )

    @Keep
    data class Vctl(
        val x: Int?,
        val y: Int?
    )
}